/**
    Copyright (C) 2011  Alexander Vollmer

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jefb.sec.entity;

import java.security.PublicKey;
import java.util.Date;

import javax.crypto.SecretKey;

public class ReceiverSession {
	private String senderAgentId;
	private String sessionId;
	private String sessionOwner;
	private PublicKey senderPublicKey;
	private SecretKey senderAESKey;
	private Date creationTime;
	private Date lastAccessTime;
	private Integer accessCounter;

	public void setCreationTime(Date creationTime) {
		this.creationTime = creationTime;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getSessionOwner() {
		return sessionOwner;
	}

	public void setSessionOwner(String sessionOwner) {
		this.sessionOwner = sessionOwner;
	}

	public void setSenderPublicKey(PublicKey senderPublicKey) {
		this.senderPublicKey = senderPublicKey;
	}

	public PublicKey getSenderPublicKey() {
		return senderPublicKey;
	}

	public void setSenderAESKey(SecretKey senderAESKey) {
		this.senderAESKey = senderAESKey;
	}

	public SecretKey getSenderAESKey() {
		return senderAESKey;
	}

	public void setLastAccessTime(Date lastAccessTime) {
		this.lastAccessTime = lastAccessTime;
	}

	public Date getLastAccessTime() {
		return lastAccessTime;
	}

	public void setAccessCounter(Integer accessCounter) {
		this.accessCounter = accessCounter;
	}

	public Integer getAccessCounter() {
		return accessCounter;
	}

	public void setSenderAgentId(String senderAgentId) {
		this.senderAgentId = senderAgentId;
	}

	public String getSenderAgentId() {
		return senderAgentId;
	}

}
